package org.ne.banksys.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
//import javax.persistence.*;
import java.math.BigDecimal;
import java.sql.Timestamp;

/**
 * @author wey
 * @date 2025/6/13 下午10:16 06
 **/

@Data
public class Trade {

    private Long tradeId;

//    @Temporal(TemporalType.TIMESTAMP)

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp tradeDate;
    private String tradeType;
    private String cardId;
    private BigDecimal tradeMoney;
    private String remark;

    public Trade() {}

    public Trade(String cardId, String tradeType,BigDecimal tradeMoney,Timestamp tradeDate, String remark) {



        this.tradeDate = tradeDate;
        this.tradeType = tradeType;
        this.cardId = cardId;
        this.tradeMoney = tradeMoney;
        this.remark = remark;
    }

}
